﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Mvc.Validation;
using Mvc.Validation.Validators;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
using System.Web.Mvc;
namespace web_uchet.Classes
{
    public class Feedback
    {
        public string Subject { get; set; }
        [RegularExpressionValidator(MessageTemplate = "Введите корректный e-mail", Pattern = @"^.+@.+\..+$")]
        [NotNullOrEmptyValidator(MessageTemplate="Введите корректный e-mail")]
        public string FeedbackMail { get; set; }
        public string Text { get; set; }
    }
}
